from odoo import api, fields, models


# 引入odoo内置的板块

class Room_set(models.Model):
    _name = 'room.set'
    # 相当于给了此模型一个唯一id，之后很多地方需要用到
    _description = '房间设置'
    room_number = fields.Char(
        string='编号',
        required=True
    )
    room_name = fields.Char(
        string='名称',
        required=True
    )
    default_security_deposit= fields.Char(
        string='预设押金',
        required=True
    )
    breakfast_number=fields.Char(
        '早餐数',
        default=False
    )
    beds_number = fields.Char(
        '床位数',
        default=False
    )
    half_price=fields.Char(
        '半天价格',
        required=True
    )
    all_price = fields.Char(
        '全天价格',
        required=True
    )
    night_price = fields.Char(
        '午夜价格',
        required=True
    )
    vacation_price = fields.Char(
        '假日价格',
        required=True
    )
    hour_price=fields.Char(
        '小时价格',
        required=True
    )
